﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2021_5_24
{
    class Program
    {
        static void Main(string[] args)
        {
            #region 移动储存
            MobileHDD MHDD1 = new MobileHDD(band: "三星", type:"500G");
            MHDD1.Write();
            MHDD1.Read();

            Console.WriteLine();

            USB usb1 = new USB(band:"KingStone" , type:"64G");
            usb1.Write();
            usb1.Read();

            Console.WriteLine();

            Computer Dell = new Computer();
            Dell.usb1 = MHDD1;
            Dell.usb2 = usb1;
            Dell.Read();
            Dell.Write();

            Console.WriteLine();
            #endregion
            #region 人
            //1、音乐老师（既是老师，又是运动员），需要有一种结构，音乐老师继承老师，同时继承运动员。
            MusicTeacher teacher = new MusicTeacher();
            teacher.Introduction();
            teacher.Lesson();
            teacher.Swim();
            //程序员（既是员工，又是作家），需要有一种结构，程序员继承员工，同时继承作家。
            Console.ForegroundColor = ConsoleColor.Green;

            Programmer programmer = new Programmer();
            programmer.Introduction();
            programmer.Working();
            programmer.Writing();
            Console.WriteLine();
            #endregion
            #region 动物
            Console.ForegroundColor = ConsoleColor.Yellow;

            Cats cat = new Cats();
            cat.Eat();
            cat.Climb();

            Dogs dog = new Dogs();
            dog.Eat();
            dog.Swim();

            Ducks duck = new Ducks();
            duck.Eat();
            duck.Swim();

            Monkey monkey = new Monkey();
            monkey.Eat();
            monkey.Climb();
            Console.WriteLine();
            #endregion
            #region 蝙蝠战车的例子
            Console.ForegroundColor = ConsoleColor.Blue;
            //普通车
            Car bwm = new Car(band:"BWM" , type:"asdwzs");
            Console.WriteLine();
            bwm.Run();
            Console.WriteLine();
            //蝙蝠战车
            Console.ForegroundColor = ConsoleColor.Gray;
            BMCar bMCar = new BMCar("零");
            bMCar.Run();
            bMCar.Fly();
            bMCar.Fire();
            Console.WriteLine();
            #endregion
            #region 飞机、小鸟、超人
            Plane plane = new Plane();
            plane.TakeOff();
            plane.Fly();
            plane.Land();

            Console.WriteLine();

            Bird bird = new Bird();
            bird.Eat();
            bird.TakeOff();
            bird.Fly();
            bird.Land();
            bird.LayEggs();

            Console.WriteLine();

            Superman superman = new Superman();
            superman.Eat();
            superman.TakeOff();
            superman.Fly();
            superman.Land();

            #endregion
        }
    }
}
